<template>
  <div id="loading" v-show="show">
    <div>{{ msg }}</div>
  </div>
</template>
<script>
export default {
  name: "loading",
  props: {
    show: Boolean,
    msg: String,
  },
  data() {
    return {};
  },
  created() {},
  methods: {},
};
</script>

<style lang="scss" scoped>
#loading {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.3);
  div {
    width: 160px;
    height: 40px;
    line-height: 40px;
    background-color: #333;
    color: rgb(0, 255, 225);
    text-align: center;
  }
}
</style>